/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.BarCodeconfigMapper;
public class BarCodeconfig extends BaseAction
{
    @Autowired(required=false)
	private BarCodeconfigMapper mapper;
    /**
    */
    
    public Object s_code() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_code=mapper.s_code(params);
        result.put("s_code", s_code);
        
        return s_code;
    }
    /**
    增加
    */
    
    public Map codeAdd() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_lookup=mapper.s_lookup(params);
        result.put("s_lookup", s_lookup);
        
        
        SQLList<SQLMap> slsbt_lookup=mapper.slsbt_lookup(params);
        result.put("slsbt_lookup", slsbt_lookup);
        
        
        SQLList<SQLMap> code_rule=mapper.code_rule(params);
        SQLMap code_rule_emt=code_rule.getExistfirst();
        result.put("code_rule", code_rule_emt);
        
        return result;
    }
    /**
    修改
    */
    
    public Map codeUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> slsbt_lookup=mapper.slsbt_lookup(params);
        result.put("slsbt_lookup", slsbt_lookup);
        
        
        SQLList<SQLMap> s_sc=mapper.s_sc(params);
        SQLMap s_sc_emt=s_sc.getExistfirst();
        result.put("s_sc", s_sc_emt);
        
        
        SQLList<SQLMap> code_rule=mapper.code_rule(params);
        result.put("code_rule", code_rule);
        
        return result;
    }
    /**
    */
    
    public Map eu_code() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.eu_code(params);
        
        return result;
    }
    /**
    */
    
    public Map u_code() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.u_code(params);
        
        return result;
    }
    /**
    增加修改
    */
    
    public Map codeAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int i_code = mapper.i_code(params);
        result.put("i_code", i_code);
        
        
        int u_type = mapper.u_type(params);
        result.put("u_type", u_type);
        
        return result;
    }
    /**
    修改修改
    */
    
    public Map codeUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.codeUpSubmit(params);
        
        return result;
    }
}